package com.xian.im.common.thread;

/**
 * @program: xian-im-server
 * @description:
 * @author: liru.xian
 * @create: 2021-02-02 09:29
 **/
public interface CallbackWhenException <T> {
    /**
     * 子线程的异常处理
     * @param t
     * @param data
     */
    void handle(Throwable t, T data);
}